package model.components;

import java.awt.Rectangle;

import model.LayerEnum;
import model.ModelComponent;
import model.characters.CharacterInterface;

public class ScreenComponent implements ModelComponent{

	private CharacterInterface character;
	private ScreenComponentEnum component;
	private String name;
	private Rectangle region;
	private LayerEnum layer;

	public ScreenComponent(ScreenComponentEnum component, Rectangle region, LayerEnum layer, CharacterInterface character){
		this.character = character;
		this.component = component;
		this.region = region;
		this.layer = layer;
	}

	@Override
	public LayerEnum getLayer() {
		return layer;
	}

	@Override
	public Rectangle getRegion() {
		return region;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRegion(Rectangle region) {
		this.region = region;
	}

	public void setLayer(LayerEnum layer) {
		this.layer = layer;
	}

	public ScreenComponentEnum getComponent() {
		return component;
	}

	public void setComponent(ScreenComponentEnum component) {
		this.component = component;
	}

	public CharacterInterface getCharacter() {
		return character;
	}

	public void setCharacter(CharacterInterface character) {
		this.character = character;
	}

}
